import * as types from '../actionsType/user'

const initState = {}
const user = (state = initState, action) => {
  switch (action.type) {
    case types.GET_USER_INFO:
      return action.payload
    case types.CLEAR_INFO:
      return initState
    default:
      return state
  }
}

export default user